#ifndef SINGLEDB_H
#define SINGLEDB_H
#include<sqlite/sqlite3.h>
#include<QDebug>
class SingleDB
{
public:
    static SingleDB*db;
    static SingleDB*getInstance();
    int openDataBase(char *path);
    void closeDataBase();
    static void relaseInstance();
    sqlite3 *getPsqlite3() const;

private:
    SingleDB();
    ~SingleDB();
    sqlite3*psqlite3;
};

#endif // SINGLEDB_H
